package com.tanhua.dubbo.api.mongo;


import com.tanhua.domain.mongo.Movement;
import com.tanhua.domain.vo.PageResult;

public interface MovementApi {

    String saveMovements(Movement movement);


    PageResult queryFriendMovements(Long userId, Integer page, Integer pagesize);

    PageResult queryRecommendMovements(Long userId, Integer page, Integer pagesize);

    PageResult queryMySelfMovements(Long userId, Integer page, Integer pagesize);

    Movement queryMovementById(String movementId);

    PageResult queryUserMovements(Integer page, Integer pagesize, Long userId, Integer state);

    void updateStateById(String movementId, Integer state);
}